#include "paramchecker.h"
#include "labelbutton.h"

ParamChecker::ParamChecker()
{
}

EttaError ParamChecker::checkParamSelect(const QWidget *parent)
{
    QList<LabelButton *> btns = parent->findChildren<LabelButton*>();
    foreach(LabelButton * btn, btns)
    {
        if (btn->isChecked())
        {
            return EttaError::OK;
        }
    }

    return EttaError::EXP_PARAM_UNSELECTED;
}
